let {projectRootPath, getSTS} = require('../../../util/index')
let {getNewRouter} = require(`${projectRootPath}/app/index.js`)
let app = getNewRouter()
// 获取 sts 信息
app.get('/get', async (req, res) => {
    try {
        let result = await getSTS();
        return res.send({data: result, code: 20000})
    } catch(error) {
        return res.send({data: {}, message: error.message, code: 20001})
    }
})
module.exports = app;